#ifndef _CSOCKET_CTCPCONN_
#define _CSOCKET_CTCPCONN_
#include "public.h"
class CTcpConn
{
private:
	char m_strRecvBuf[2048];
	int m_nRecvLen;
	SOCKET m_nSock;
public:
	CTcpConn(SOCKET nSock)
	{
		m_nSock = nSock;
		m_nRecvLen = 0;
	}
	SOCKET GetSock()
	{
		return m_nSock;
	}
	void Recv( const char* buf, int len);

	const char* GetBuff();

	int GetBuffLen();

	void RemBuff(int nLen);
};
#endif 

